Builder

General strategy of building is to only offer additive “or” operations that are chained together. Any more complex operations can be performed by the developer providing their own custom Predicate.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Add a filter for allowed actions.
Add an action to the list of allowed actions.
Link copied to clipboard
Allow any components.
Link copied to clipboard
Add a filter for allowed categories.
Add a category to the allowed category list.
Link copied to clipboard
Allows clipData that passes the given filter.
Link copied to clipboard
Allows clipData that contains text.
Link copied to clipboard
Allows clipData whose items URIs pass the given URI filter.
Link copied to clipboard
Allows clipData whose items URIs authorities match the given authority.
Link copied to clipboard
Add a component to the allowed components list.
Add a filter for allowed components.
Link copied to clipboard
Allow any component under the specified package.
Link copied to clipboard
Allow data that passes the filter test.
Link copied to clipboard
Convenient method to allow all data whose URI authority equals to the given.
Link copied to clipboard
Allows an extra member whose key matches the given key and whose value passes the filter test.
Allows an extra member whose key and type of value matches the given.
open fun <T> allowExtra(@NonNull key: String, @NonNull clazz: Class<T>, @NonNull valueFilter: Predicate<T>): IntentSanitizer.Builder
Allows an extra member whose key matches the given key and whose value is of the type of the given clazz and passes the value filter.
Link copied to clipboard
Allows an extra member with the key MediaStore.EXTRA_OUTPUT.
Link copied to clipboard
Allows an extra member with the key Intent.EXTRA_STREAM.
Link copied to clipboard
Allows an extra member with the key Intent.EXTRA_STREAM.
Link copied to clipboard
Sets allowed flags.
Link copied to clipboard
Adds all history stack flags into the allowed flags set.
Link copied to clipboard
Allows any identifier.
Link copied to clipboard
Add a filter for allowed packages.
Add a package to the allowed packages.
Link copied to clipboard
Adds all receiver flags into the allowed flags set.
Link copied to clipboard
Allow any selector.
Link copied to clipboard
Allow any source bounds.
Link copied to clipboard
Add a filter for allowed data types.
Add a data type to the allowed type list.
Link copied to clipboard
Build the IntentSanitizer.